package com.phoenix.jsef.demo.controller;

import org.springframework.web.bind.annotation.*;

/**
 * @version V1.0
 * @ClassName: TestController
 * @Description:TODO()
 * @author: 李启联
 * @date: 2018-10-25 11:27
 * @Copyright: Copyright (c), 2018-2018
 * 申明：本内容未经作者本人同意,禁止外泄以及用于其他的商业项目.
 */
@RestController
@RequestMapping(value = "/test")
public class TestController {

    @PostMapping(value = "/push")
    public String test(@RequestBody String str){
        System.out.print(str);
        return "OK";
    }

    @RequestMapping(value = "/hello")
    public String hello(String str){
        System.out.print(str);
        return "OK";
    }
}
